#ifndef TASKTHUMBNAILREQUEST_H
#define TASKTHUMBNAILREQUEST_H

#include "taskrequest.h"
#include "misc.h"

namespace Wishmaster {

class WISHMASTER_EXPORT TaskThumbnailRequest : public TaskRequest
{
	Q_OBJECT
public:
	TaskThumbnailRequest(const PostId& postId, int attachmentIndex, const Wishmaster2::Network::Url& link,
			const QString& msg, Wishmaster2::Network::RequestManager* requestManager);

	PostId postId() const;
	int attachmentIndex() const;

signals:
	void result(TaskThumbnailRequest* task, const QByteArray& arr);

protected:
	virtual void onRequestDone();

private:
	PostId m_postid;
	int m_attachmentIndex;
};

} // namespace Wishmaster

#endif // TASKTHUMBNAILREQUEST_H
